from django.urls import path
from user import views


urlpatterns = [
    path('user/username/<str:username>/',views.CheckUserNameView.as_view()),
    path('user/mobile/<str:mobile>/',views.CheckMobile.as_view()),
    path('user/img/<int:uuid>/',views.GenerateImgCode.as_view()),
    path('user/code/',views.CheckImageCode.as_view()),

    path('user/sms_code/',views.SendSMSCode.as_view()),  # 发送短信验证码

    path('register/', views.RegisterView.as_view()),  # 注册验证

    path('login/', views.LoginView.as_view()),  # 登录

    path('logout/', views.LoginOut.as_view()), # 退出登录
]